﻿using System;
using System.Collections.Generic;
using System.Web.UI;

namespace System.Web.Core
{
    public class BaseUserControl : UserControl, IRequestBuilder, IReplyConverter
    {
        public EntityEngine EntityEngine
        {
            get
            {
                return ((BasePage)Page).Engine;
            }
        }

        protected override void OnInit(EventArgs e)
        {
            GetRequests(EntityEngine.EntityRequests);
        }

        #region IRequestBuilder 成员

        public virtual void GetRequests(List<BaseRequestBinder> requestBinders)
        {
        }

        #endregion
    }
}